package com.zengdada.authority.service;

import com.zengdada.authority.model.TimedTask;
import com.zengdada.authority.model.TimedTaskCron;
import com.zengdada.authority.model.TimedTaskExtend;

/**
 * @Auther: 12614
 * @Contact: 1261438511@qq.com
 * @Date: 2019-03-29 14:19
 * @Description:
 */
public interface TimedTaskAuthorityService extends BaseService<TimedTask> {
    String changeTaskState(String id, String state);

    String save(TimedTask timedTask);

    void addJob(TimedTaskExtend timedTaskExtend) throws Exception;

    void addJob(TimedTaskExtend timedTaskExtend, TimedTaskCron cron) throws Exception;
}
